﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DevExpress.Web.ASPxGridView;

namespace Indeco.G24.Website.Price.Admin.UserControls
{
    public partial class frmGridBangGiaSanPham : System.Web.UI.UserControl
    {
        private string id_DiaBan = "00000000-0000-0000-0000-000000000000";
        private string id_NhaCungCap = "00000000-0000-0000-0000-000000000000";
        private string tenDiaBan = "Địa bàn";
        /// <summary>
        /// ID_DiaBan
        /// </summary>
        public string ID_DiaBan
        {
            get
            {
                return id_DiaBan;
            }
            set
            {
                id_DiaBan = value;
            }
        }
        /// <summary>
        /// ID_NhaCungCap
        /// </summary>
        public string ID_NhaCungCap
        {
            get
            {
                return id_NhaCungCap;
            }
            set
            {
                id_NhaCungCap = value;
            }
        }
        /// <summary>
        /// TenDiaBan
        /// </summary>
        public string TenDiaBan
        {
            get
            {
                return tenDiaBan;
            }
            set
            {
                tenDiaBan = value;
                PanelGridViewBangGiaSanPham.GroupingText = value;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            lblDiaBan.Text = id_DiaBan;
            lblNhaCungCap.Text = id_NhaCungCap;
            gridViewBangGiaSanPham.GroupBy((GridViewDataColumn)gridViewBangGiaSanPham.Columns[0]);
            gridViewBangGiaSanPham.ExpandAll();
        }

        protected void gridViewBangGiaSanPham_DataBound(object sender, EventArgs e)
        {
            gridViewBangGiaSanPham.ExpandAll();
        }

    }
}